package dao.publicsystemtree;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import entitybean.publicsystemtree.EntityBeanPublicSystemTree;

public class DaoImpl_PublicSystemTree extends HibernateDaoSupport implements
		Dao_PublicSystemTree {
	public void Insert_PublicSystemTree(EntityBeanPublicSystemTree e) {
		this.getHibernateTemplate().save(e);
	}

	public void Update_PublicSystemTree(EntityBeanPublicSystemTree e) {
		this.getHibernateTemplate().update(e);
	}

	public void Delete_PublicSystemTree(EntityBeanPublicSystemTree e) {
		this.getHibernateTemplate().delete(e);
	}
	@SuppressWarnings("unchecked")
	public List<EntityBeanPublicSystemTree> Find_PublicSystemTree_by_Pub_Rootid(Integer pub_rootid)
	{
		return this.getHibernateTemplate().find("from EntityBeanPublicSystemTree where pub_rootid="+pub_rootid);
	}
	
}
